<template>
  <div class="order-dialog">
    <el-dialog :visible.sync="isvisible" title="物流信息">
      <el-timeline>
        <el-timeline-item
          v-for="activity in timelineList"
          :key="activity.time"
          :timestamp="activity.time"
        >
          {{ activity.context }}
        </el-timeline-item>
      </el-timeline>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: "OrderDialog",
  data() {
    return {
      isvisible: false
    };
  },
  props: {
    timelineList: {
      type: Array,
      default() {
        return [];
      }
    }
  }
  // methods: {
  //   testclick() {
  //     console.log('```')
  //     this.isvisible = false
  //   }
  // },
};
</script>

<style lang="scss" scoped></style>
